[id].tsx 529 B

12345678910111213141516171819202122
  1. import {useRouter} from "next/router"
  2. const ProtectedPage = () => {
  3. const router = useRouter()
  4. return(
  5. <section>
  6. {typeof router.query.id === 'string' && router.query.id === '3TiwWdeTa1145' ? (
  7. <>
  8. <h2>Les Mills HIIT Beyond</h2>
  9. <iframe
  10. width="640"
  11. height="360"
  12. src="https://www.youtube.com/embed/oez2w7c1RPE"
  13. frameBorder="0"
  14. allowFullScreen
  15. />
  16. </>) : '🤦‍♀️'}
  17. </section>
  18. )
  19. }
  20. export default ProtectedPage